package cn.edu.neusoft.yuejian13.yuejian_13.model;


import java.util.List;

import cn.edu.neusoft.yuejian13.yuejian_13.javaBean.Train;
import cn.edu.neusoft.yuejian13.yuejian_13.listener.List_TListener;
import cn.edu.neusoft.yuejian13.yuejian_13.listener.TListener;
import retrofit2.Call;



public class TrainModel extends RetrofitBaseModel {

    public void allTrain(List_TListener<Train> listener){
        Call<List<Train>> call = service.alltrain();
        callenqueue_list(call,listener);
    }

    public void trainDetails(int trainid,TListener<Train> listener){
        Call<Train> call = service.train_detail(trainid);
        callenqueue(call,listener);
    }
}

